package com.example.springboot.subscribe;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @program: 12-springboot-rabbitmq
 * @description: HelloReceiver
 * @author: Yuwl
 * @create: 2019-12-27 16:41
 **/
@Component
@RabbitListener(queues = "q_fanout_A")
public class ReceiverA {

	@RabbitHandler
	public void process(String hello) {
		System.out.println("ReceiveA："+hello);
	}
}
